package com.infosys.newSimpleInvertedIndex.service;

import com.infosys.newSimpleInvertedIndex.entities.Employee;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 员工总表 服务类
 * </p>
 *
 * @author Tester
 * @since 2024-06-24
 */
public interface IEmployeeService extends IService<Employee> {
    // LESSON: use querywrapper instead
//    Employee getByGovId(String govId);
//    List<Employee> getEmployeeByName(String name);
//    List<Employee> getEmployeeByDeptName(String deptName);
//    List<Employee> getEmployeeByEnrollDate(LocalDate enrollDate);

    Employee getEmployeeById(String id);
    List<Employee> getEmployeeByAgeRange(String startDateStr, String endDateStr);
}
